

        <g:set var="entityName" value="${message(code: 'term.label', default: 'Term')}" />
            <g:form method="post" >
                <g:hiddenField name="id" value="${termInstance?.id}" />
                <g:hiddenField name="version" value="${termInstance?.version}" />
                <div class="dialog">
                    <table>
                        <tbody>
                        
                          
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="term"><g:message code="term.term.label" default="Term" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: termInstance, field: 'term', 'errors')}">
                                    <g:radioGroup name="term" values="${Term.allTerm()}" value="${termInstance?.term}" >
                                         ${it.label}：${it.radio} 
                                    </g:radioGroup>
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="startTime"><g:message code="term.startTime.label" default="Start Time" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: termInstance, field: 'startTime', 'errors')}">
                                    <g:textField name="startTime" value="${termInstance?.startTime?.format('yyyy-MM-dd')}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="endTime"><g:message code="term.endTime.label" default="End Time" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: termInstance, field: 'endTime', 'errors')}">
                                    <g:textField name="endTime" value="${termInstance?.endTime?.format('yyyy-MM-dd')}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="year"><g:message code="term.year.label" default="Year" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: termInstance, field: 'year', 'errors')}">
                                    ${termInstance?.year}<g:message code="term.year.label" default="Year" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="description"><g:message code="term.description.label" default="Description" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: termInstance, field: 'description', 'errors')}">
                                    <g:textArea name="description" cols="40" rows="5" value="${termInstance?.description}" />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                </div>
            </g:form>
